package com.weiyuwqj.api.model.convert;

/**
 * Created by zhangyong on 2016/3/24.
 */
public class ItemStatusConvert extends DefaultConvert {
    @Override
    public Object convert(Object val) {
        if(val==null) return "";
        if(!(val instanceof Integer)){
            return "";
        }
        int type=(Integer)val;
        if(type==0){
            return "等待初审";
        }else if(type==1){
            return "等待开放";
        }else if(type==2){
            return "初审中";
        }else if(type==10){
            return "通过初审";
        }else if(type==11){
            return "初审失败";
        }else if(type==14){
            return "项目撤回";
        }else if(type==18){
            return "项目截标";
        }else if(type==20){
            return "项目满标";
        }else if(type==21){
            return "满标成功";
        }else if(type==22){
            return "复审失败";
        }else if(type==30){
            return "复审通过待还款";
        }else if(type==31){
            return "部分还款";
        }else if(type==32){
            return "还款成功";
        }else {
            return "其他";
        }
    }
}
